﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebShopData
{
    public static class UserData
    {
        public static User Authenticate(string userName, string passWord)
        {
            var user = UserDB.GetUserByUserName(userName);
            if (user != null)
            {
                if (user.PassWord == passWord)
                {
                    return user;
                } 
            }
            return null;
        }
    }
}
